import type { AppRouteModule } from '/@/router/types';
import { LAYOUT } from '/@/router/constant';
import { t } from '/@/hooks/web/useI18n';

const personal: AppRouteModule = {
  path: '/personal',
  name: 'Personal',
  component: LAYOUT,
  redirect: '/personal/center',
  meta: {
    icon: 'ion:aperture-outline',
    title: '个人信息',
    orderNo: 30,
  },
  children: [
    {
      path: 'center',
      name: 'AccountCenterPage',
      component: () => import('/@/views/account/center/index.vue'),
      meta: {
        title: t('routes.demo.page.accountCenter'),
      },
    },
    {
      path: 'setting',
      name: 'AccountSettingPage',
      component: () => import('/@/views/account/setting/index.vue'),
      meta: {
        title: t('routes.demo.page.accountSetting'),
      },
    },
  ],
};
export default personal;
